package cn.gson.springboot.model.mapper;


import cn.gson.springboot.model.pojos.Product;
import cn.gson.springboot.model.pojos.ProductClassify;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface ProductMapper {
    public List<Product> selectAll(@Param("search") String search, @Param("type") Integer type);
    public Product selectOne(@Param("productId") Integer productId);
    public List<ProductClassify> classify();
    public List<Product> selectPros(Integer productClassifyId);
}

